<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Db;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';
    protected $userid = '';
    protected $group = [];//组别
    protected $batch = [];//批次
    protected $userstatus = '';//当前登录用户身份


    public function _initialize()
    {
//        $this->userid = session("users.id");
//        $userinfo = Db::name("app_users")->find($this->userid);
//        //
//        $this->userstatus = $userinfo['app_status'];
//        $this->group = Db::name("pro_group")->select();
//        $this->batch = Db::name("pro_batch")->select();
//
//        $this->assign("group", $this->group);
//        $this->assign("batch", $this->batch);
    }

    public function index()
    {
//        $id = 1;
//        // $id = session("users.id");
//
//        $info = Db::name("app_users")->find($id);
//
//        $this->assign("info", $info);
//        return $this->view->fetch();
    }


}
